<?php echo $form->messages('loginfail'); ?>
<?php echo $form->messages('csrf'); ?>
<?php echo $this->tag->form(array()); ?>
<div class="form-group">
    <?php echo $form->render('email', array('class' => 'form-control')); ?>
    <?php echo $form->messages('email'); ?>
</div>
<div class="form-group">
    <?php echo $form->render('password', array('class' => 'form-control', 'minlength' => '6', 'maxlength' => '50')); ?>
    <?php echo $form->messages('password'); ?>
</div>
<div class="form-group">
    <?php echo $form->render('remember'); ?>
    <label for="remember">Remember me</label>
</div>
<div class="form-group">
    <?php echo $form->render('submit', array('value' => 'Login')); ?>
</div>
<?php echo $form->render('csrf'); ?>
<?php echo $this->tag->endform(); ?>